/*
 * @Author: 花香蝶自来 1026583651@qq.com
 * @Date: 2024-07-12 19:44:17
 * @LastEditors: 花香蝶自来 1026583651@qq.com
 * @LastEditTime: 2024-07-14 19:53:51
 * @FilePath: /driver/z/function/baseobj.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
let logisticsOrderState = [{
		label: '待排线',
		prop: 'INITIAL_STATE'
	},
	{
		label: '排线中',
		prop: 'ROUTE_PLANNING'
	},
	{
		label: '物流单排线完成',
		prop: 'ROUTE_PLANNING_COMPLETE'
	},
	{
		label: '物流单已出库',
		prop: 'LOGISTICS_ORDER_OUTBOUND'
	},
	{
		label: '物流单已发货',
		prop: 'LOGISTICS_ORDER_SHIPMENT'
	},
	{
		label: '物流单已到达',
		prop: 'LOGISTICS_ORDER_ARRIVAL'
	},
	{
		label: '物流单已签收',
		prop: 'LOGISTICS_ORDER_RECEIPT'
	},
]
let r = {
	logisticsOrderState
}
for (let key in r) {
	let v = r[key].reduce((a, b) => {
		let r = {
			...a
		}
		r[b.prop] = b.label
		return r
	}, {})
	r[`${key}Option`] = v
}
console.log(r.logisticsOrderStateOption['LOGISTICS_ORDER_OUTBOUND'], 123456);
export default r